/*
 * Copyright (C) 2004-2016 7dub.cn All rights reserved Author: caozhongsheng
 * Date: 2016年11月12日
 */
package cn.dub.scarecrow.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.dub.scarecrow.common.entity.User;
import cn.dub.scarecrow.dao.IUserMapper;
import cn.dub.scarecrow.service.IActivityService;

@Service
public class ActivityServiceImpl implements IActivityService {

    @Resource
    private IUserMapper userDao;

    @Override
    public User getUserById(Integer id) {
        return this.userDao.getUserById(id);
    }

    @Override
    public List<User> getAllUser() {
        return this.userDao.queryUsers();
    }

}
